﻿using System.ComponentModel.DataAnnotations;

namespace TZBlog
{
    public class BaseEntity
    {
        [Key]
        public string F_Id { get; set; }
        public DateTime? F_CreateTime { get; set; }
        public DateTime F_UpdateTime { get; set; }

        public void Create()
        {
            F_Id = Guid.NewGuid().ToString();
            F_CreateTime = DateTime.Now;
        }
        public void Update() { 
            F_UpdateTime = DateTime.Now;
        }
    }
}
